import {req_get, req_get_auth, req_post_auth} from "./baseApi.js";
import {HOST} from './hosts'


export const addTrip = (data) => {
    const url = `${HOST}/trip/create`
    return req_post_auth("post", url, data);
};

export const getCurrentCarRequest = (params) => {
    const url = `${HOST}/driver/currentCarRequest`
    return req_get_auth("get", url, params);
};